package com.wyw.design.model.learning.behavioral.mediator;

/**
 * @Title   具体同事类1
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/18 10:44
 * Update History:
 * Author        Time            Content
 */
class Colleague1 extends Colleague {
    public Colleague1(Mediator mediator) {
        super(mediator);
    }

    // 自发行为
    public void doSelfMethod1() {
        System.out.println("11111");
    }

    // 依赖方法
    public void depMethod1() {
        // 委托给中介者处理的任务
        this.mediator.doSomething();
    }
}
